package com.lzj.demo.collection.person;
class A {
    int m(double x) {
        return (int)x;
    }
}
class B extends A{
    double m(int x) {
        return (int) x;
    }
    int m(double x) {
        return (int)x * 2;
    }
}
public class Test {
    public static void main(String[] args) {
        A a = new B();
        B b = new B();
        System.out.println(a.m(1));
        System.out.println(a.m(1.5));

    }
}
